Skip to content

[UR][L0] Fix UR_PROGRAM_INFO_BINARIES query #19415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

againull
Copy link
Contributor

@againull againull commented Jul 12, 2025

The size of the value returned from UR_PROGRAM_INFO_BINARIES query was incorrect, we need to return the size of array of pointers (for each device associated with the program) according to doc:
https://oneapi-src.github.io/unified-runtime/core/api.html?highlight=urprogramgetinfo#ur-program-info-t
This bug was leading to crashes when using persistent cache in sycl in scenarios with multi-device context, newly added test emulates that scenario when we recreate program from the saved binary.

@againull againull force-pushed the ur_program_info_binaries branch from 736967c to d4d54b8 Compare July 14, 2025 17:32
@againull againull marked this pull request as ready for review July 14, 2025 17:43
@againull againull requested review from a team as code owners July 14, 2025 17:43
Copy link
Contributor

@nrspruit nrspruit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the patch!

@againull againull merged commit 7ab256b into intel:sycl Jul 14, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants